pdb and logging modules for python
1 | import pdb |
execute the .py file
p <variable>
which is really helpful for debugging!
ālā show the places
ācā continue
BTW. for the log record1
import logging
can refer to https://github.com/ZENGXH/kaggle/blob/master/my_io.py